// HotKeyListCtrl.cpp : implementation file
//

#include "stdafx.h"
#include "ansieditor.h"
#include "HotKeyListCtrl.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CHotKeyListCtrl

CHotKeyListCtrl::CHotKeyListCtrl()
{
	m_wndInPlaceCtrl = NULL;
}

CHotKeyListCtrl::~CHotKeyListCtrl()
{
}


BEGIN_MESSAGE_MAP(CHotKeyListCtrl, CListCtrl)
	//{{AFX_MSG_MAP(CHotKeyListCtrl)
	ON_WM_VSCROLL()
	ON_WM_HSCROLL()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CHotKeyListCtrl message handlers

void CHotKeyListCtrl::OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar) 
{
	if(GetFocus() == m_wndInPlaceCtrl)
	{
		this->SetFocus();
	}
	CListCtrl::OnVScroll(nSBCode, nPos, pScrollBar);
}

void CHotKeyListCtrl::OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar) 
{
	if(GetFocus() == m_wndInPlaceCtrl)
	{
		this->SetFocus();
	}	
	CListCtrl::OnHScroll(nSBCode, nPos, pScrollBar);
}
